<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="{{ mix('/css/admin.css') }}">
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div class="panel panel-default">
                <div class="panel-heading">登录后台</div>
                <div class="panel-body">
                    {!! Form::open(['url' => route('admin.login.submit'), 'method' => 'post']) !!}
                    <div class="form-group{{ $errors->has('email') ? ' has-error' : ''}}">
                        {{ Form::label('email', '邮箱地址') }}
                        {{ Form::email('email', old('email') ,['class' => 'form-control']) }}
                        {!! $errors->first('email', '<span class="help-block">:message</span>') !!}
                    </div>
                    <div class="form-group{{ $errors->has('password') ? ' has-error' : ''}}">
                        {{ Form::label('password', '密码') }}
                        {{ Form::password('password', ['class' => 'form-control']) }}
                        {!! $errors->first('password', '<span class="help-block">:message</span>') !!}
                    </div>
                    <div class="form-group">
                        {{ Form::submit('登录', ['class' => 'btn btn-primary btn-block']) }}
                    </div>
                    {!! Form::close() !!}
                </div>
            </div>
        </div>
    </div>
</div>
<script src="{{ mix('/js/admin.js') }}"></script>
</body>
</html>